import { styleLibrary } from '#/assets/style';

/**
 * @description: 获取指定样式模板
 * @param {string} category 样式类别
 * @param {string} style 样式
 * @return {object}
 */
export const getStyleTemplate = (
  category: string,
  style: string,
  subStyle: string,
): object => {
  return styleLibrary[category]?.[style]?.[subStyle];
};

// export const getStyleTemplate2 = (templateId: string) => {
//   return styleLibrary.find(template => template.id === templateId)
// }
